package com.ksd.modules.download.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ksd.common.po.BatchIdsPO;
import com.ksd.commons.IBaseService;
import com.ksd.modules.download.entity.AdminDownloadsCode;
import com.ksd.modules.download.po.AdminDownloadsCodeSavePO;
import com.ksd.modules.download.po.AdminDownloadsCodeSearchPO;
import com.ksd.modules.download.vo.AdminDownloadsCodeVo;

public interface IAdminDownloadsCodeService extends IBaseService<AdminDownloadsCode> {


    /**
     * 查询列表
     * @param adminDownloadsCodeSearchPO
     * @return
     */
    Page<AdminDownloadsCodeVo> findAdminDownloadsCodes(AdminDownloadsCodeSearchPO adminDownloadsCodeSearchPO);



    /**
     * 根据id逻辑删除单个
     * @return
     */
    Boolean removeAdminDownloadsCodeById(Long id);

    /**
     * 批量物理删除
     * @param batchIdsPO
     * @return
     */
    Boolean batchRemovesAdminDownloadsCode(BatchIdsPO batchIdsPO);


    /**
     * 修改状态
     * @param id
     * @param column
     * @param value
     * @return
     */
    boolean updateStatus(Long id,String column,Integer value);

    /**
     * 修改状态
     * @param id
     * @param column
     * @param value
     * @return
     */
    boolean updateStatusStr(Long id,String column,String value);

    /**
     * 创建兑换码
     * @param adminDownloadsCodeSavePO
     * @return
     */
    Boolean createBatchCode(AdminDownloadsCodeSavePO adminDownloadsCodeSavePO);
}
